package com.aaa.sso.service;

import com.aaa.common.bo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Repository
@FeignClient("powerServer")
public interface RemoteUserService {
    /**
     * 远程调用power_server,根据用户名查询用户信息
     * @param username
     * @return
     */
    @GetMapping("/user/queryUserByUserName")
    User selectUserByParam(@RequestParam("userName") String username);
}
